<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>新建岗位</title>

    <!-- Bootstrap -->
    <link href="<%=basePath%>css/bootstrap.min.css" rel="stylesheet">
    <link href="<%=basePath%>css/lastStyle.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

  </head>
  <body>
<!-- 导航 -->
     <nav class="navbar navbar-default ">
      <div class="container">

        <!-- 小屏幕按钮和logo -->
        <div class="navbar-header">
          <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a href="#" class="navbar-brand">RM admin</a>
        </div>

        <!-- 小屏幕按钮和logo -->
        <!-- 导航 -->
        <div class="collapse navbar-collapse">
           <ul class=" nav navbar-nav ">
             <li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span> &nbsp;后台首页</a></li>
             <li class="dropdown">
                <a href="organization.html" class="dropdown-toggle" data-toggle="dropdown">
                   组织结构管理
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/organization/department">部门管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/organization/job">岗位管理</a></li>

                </ul>
            </li>
            <li class="dropdown">
                <a href="organization.html" class="dropdown-toggle" data-toggle="dropdown">
                    人事信息管理
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/employee/enterAddEmployee">员工入职管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/period/enterPeriod/">试用期管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/dept/out">部门调动管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/post/out">岗位调动管理</a></li>
                    <li><a href="${pageContext.request.contextPath }/leave/out">员工离职管理</a></li>

                </ul>
            </li>
             <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    员工信息中心
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/infoemployee/list">员工信息中心</a></li>


                </ul>
            </li>
            <li class="dropdown">
                <a href="organization.html" class="dropdown-toggle" data-toggle="dropdown">
                    报表管理
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="${pageContext.request.contextPath }/statement/newHire">新聘员工报表</a></li>
                    <li><a href="${pageContext.request.contextPath }/statement/departure">离职员工报表</a></li>
                    <li><a href="${pageContext.request.contextPath }/statement/deptTurn">部门调动员工报表</a></li>
                    <li><a href="${pageContext.request.contextPath }/statement/postTurn">岗位调动员工报表</a></li>
                </ul>
            </li>
           </ul>
           <ul class=" nav navbar-nav navbar-right ">
             <li class="dropdown">
                <a href="#" class=" dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">admin
                    <span class="caret"></span>
                </a>
            </li>

             <li><a href="http://localhost:8080/PMsystem/admin/exit"><span class="glyphicon glyphicon-off"></span>&nbsp;退出</a></li>
           </ul>
        </div>
        <!-- 导航 -->
      </div>
    </nav>
   <!-- 导航 -->
   <div class="container-fluid">
       <div class="row">
           <div class="col-md-2">
               <div class="panel-group" id="accordion">
                  <div class="panel panel-default">
                      <div class="panel-heading">
                          <h4 class="panel-title">
                              <a data-toggle="collapse" data-parent="#accordion"
                              href="#collapseOne" style="text-decoration: none;">
                              岗位操作
                              </a>
                          </h4>
                      </div>
                       <div id="collapseOne" class="panel-collapse collapse in">
                          <div class="panel-body">
                             <table class="table table-hover">
                              <tbody>
                                <tr>
                                <tr>
                                  <td><a href="job-add" style="text-decoration: none;">新建岗位</a></td>
                                </tr>
                                <tr><td ><a href="${pageContext.request.contextPath }/organization/job" style="text-decoration: none;">查询岗位</a></td>
                                 </tr>
                                <!--  <td ><a href="#" style="text-decoration: none;">查询岗位下员工</a></td> -->
                                </tr>
                              </tbody>
                            </table>
                          </div>
                      </div>
                  </div>
              </div>

           </div>
           <div>
<div class="col-md-10"> 
            <div>
                <form class="bs-example bs-example-form" action="job-insert" role="form" method="post">
                   <!--  <div class="input-group ">
                        <span class="input-group-addon">编号</span>
                        <input type="text" class="form-control" placeholder="请输入编号">
                    </div>
                    <br> -->
                    <div class="input-group ">
                     <span class="input-group-addon">名称</span>
                        <input type="text" class="form-control" name="postName" placeholder="请输入名称">
                    </div>
                    <br>
                    <div class="input-group ">
                       <span class="input-group-addon">岗位类型</span>
						<input type="hidden" id="postType" name="postType" value="0"/>
	                    <select class="form-control" id="postTypeBox"  onchange="choiceType(this)">
	                      <option value="0">管理</option>
	                      <option value="1">技术</option>
	                      <option value="2">营销</option>
	                      <option value="3">市场</option>
	                    </select>
                    </div>
                    <br>
                    <div class="input-group ">
                    	<span class="input-group-addon">岗位编制</span>
                        <input type="text" class="form-control" name="postWeave" placeholder="请输入岗位编制">
                    </div>
                    <br>
                    
                    <button type="submit" class="btn btn-info"> 提交
                    </button>
                    &nbsp&nbsp&nbsp&nbsp&nbsp
                    <button type="button" class="btn btn-primary" 
                          data-toggle="button"> 取消
                    </button>
                </form>
            </div>
            </div>
             
           

           </div>

           </div>



           </div>
       </div>







    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="<%=basePath%>js/jquery-3.2.1.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="<%=basePath%>js/bootstrap.min.js"></script>
    <script type="text/javascript">
   		function choiceType(e){
   			//alert($(e).val());
   			$("#postType").val($(e).val());
   		} 
    </script>
  </body>
</html>